package com.cn.spring.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.spring.web.dao.UserDao;
import com.cn.spring.web.model.TUser;
import com.cn.spring.web.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	

	public void saveUser(TUser userr) {
		userDao.saveUser(userr);
	}


	public void saveUser(Long id) {
		userDao.deleteUser(id);
	}


	public void updateUser(TUser user) {
		userDao.updateUser(user);
		
	}


	public TUser findUser(Long id) {
		return userDao.findUser(id);
	}

}
